package model;

public class SortAlgorithm {

	private final Buffer<Integer> input;
	private final SortType type;
	
	public SortAlgorithm(final Buffer<Integer> input, final SortType sortType){
		this.input = input;
		this.type = sortType;
		
	}
	
	public Buffer<Integer> getInput(){
		return input;
	}
	
	public void sort(){
		
		this.type.sort(this.getInput());
	}
}
